﻿using Kingdee.BOS.Core.DynamicForm.PlugIn.Args;
using Kingdee.BOS.Core.List.PlugIn;
using Kingdee.BOS.Util;
using System.ComponentModel;

namespace Fibot.YGJD.K3Cloud.Business.PlugIn.SAL
{
    [HotUpdate]
    [Description("销售出库 整单顺序 打印排序")]
    public class SalOutStockPrintSortListPlugIn : AbstractListPlugIn
    {

        public override void OnPrepareNotePrintData(PreparePrintDataEventArgs e)
        {
            base.OnPrepareNotePrintData(e);
        }

        public override void OnPrepareNotePrintQueryParam(PrepareNotePrintQueryParamEventArgs e)
        {
            base.OnPrepareNotePrintQueryParam(e);
            string seqSort = "";
            if (!string.IsNullOrEmpty(seqSort))
            {
                if (e.QueryParameter.OrderByClauseWihtKey == null || e.QueryParameter.OrderByClauseWihtKey.Length <= 0)
                {

                }
                else
                {
                    e.QueryParameter.OrderByClauseWihtKey = e.QueryParameter.OrderByClauseWihtKey + "," + seqSort;
                }
            }
        }

    }
}
